﻿@*YoursLC有源低代码 CreateTime:2022-04-04 11:38:19 添加或编辑-此文件放置于Views/InventoryTransfer/中*@

@{ ViewBag.Title = "RDLCReport";
    Layout = "~/Areas/Shared/_LayuiForm.cshtml"; }

@*库存调拨*@
<form class="layui-form" lay-filter="formUser">
    <input style="display:none" id="sys_listid" value="@ViewBag.listid">
    <div class="layui-form-item" style="text-align: center;">
        <a href="" target="_blank" id="pdf" class="layui-btn layui-btn-primary layui-btn-sm">打开PDF</a>
        <a href="" target="_blank" id="excel" class="layui-btn layui-btn-primary layui-btn-sm">导出Excel</a>
        <a href="" target="_blank" id="doc" class="layui-btn layui-btn-primary layui-btn-sm">导出Doc</a>
    </div>
</form>
<script>
    layui.use(["form"], function () {
        let form = layui.form;
        let layer = layui.layer;

        let $ = layui.$;

        $("#pdf").attr("href", "/Com/RDLCReport/ExportPdf?listid=" + $('#sys_listid').val() + "&fwid=fw_InventoryTransfer");

        $("#excel").attr("href", "/Com/RDLCReport/ExportXlsx?listid=" + $('#sys_listid').val() + "&fwid=fw_InventoryTransfer");

        $("#doc").attr("href", "/Com/RDLCReport/ExportDocx?listid=" + $('#sys_listid').val() + "&fwid=fw_InventoryTransfer");

    });
</script>